package com.tencent.yolov8ncnn;

public class DetectionResult {
    public String label;
    public float confidence;
    public float rectX;
    public float rectY;
    public float rectWidth;
    public float rectHeight;

    // 构造函数
    public DetectionResult(String label, float confidence,
                           float rectX, float rectY,
                           float rectWidth, float rectHeight) {
        this.label = label;
        this.confidence = confidence;
        this.rectX = rectX;
        this.rectY = rectY;
        this.rectWidth = rectWidth;
        this.rectHeight = rectHeight;
    }
}
